package com.ldp.controller;

import com.ldp.service.LocalItemService;
import com.ldp.service.LocalTtemServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 北巷_东坡
 * @date 2022/10/27 8:08
 * @computer 10741
 */
@RestController
public class HystrixController {

    @Autowired
    LocalItemService localItemService;
    @GetMapping("/hi")
    public String hi(String id){
        return localItemService.hi(id);
    }

    //    @Qualifier("com.ldp.service.LocalTtemServiceImpl")
//    @Autowired
//    LocalTtemServiceImpl localTtemServiceimpl;
//    @GetMapping("/hi/hystrix")
//    public String hihystrix(String id){
//        return localTtemServiceimpl.hi(id);
//    }
}
